package com.Service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.Mapper.AcountFundMapper;
import com.Pojo.Account;
import com.Pojo.AcountFund;
import com.Service.AcountFund_Service;
@Service
public class AcountFund_Service_Im implements AcountFund_Service {
	@Autowired
	private AcountFundMapper acountFundMapper;
	public int insertAcountFund(Account account) {
		AcountFund acountFund = new AcountFund();
		acountFund.setAccountid(account.getId());
		acountFund.setBalance(0L);
		acountFund.setCreatetime(account.getCreatetime());
		acountFund.setWithdrawlimit(0L);
		acountFund.setUpdatetime(account.getUpdatetime());
		int insert = acountFundMapper.insert(acountFund);
		return insert;
	}
	public AcountFund selectBycount(Integer count_id) {
		
		return acountFundMapper.selectBycount(count_id);
	}

}
